home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
1_0-2
/
D2R_FOLD
/
D2R_EXIT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1986-11-06
|
348b
|
23 lines
#include "::MacIncludes:MacTypes.h"
/* My standard exit routine */
my_exit(which)
int which;
{
int theitem, vRefNum;
Str255 filename;
if (which == 1)
if (!transfer(filename,&vRefNum))
return(1);
all_winclose();
if (which == 1)
{
SetVol(0L,vRefNum); /* this should work with HFS */
Launch(0,filename);
}
else
ExitToShell();
}